package com.limingfeiyu.platform.management.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.limingfeiyu.common.web.PageTable;
import com.limingfeiyu.platform.management.entity.HospitalPackage;
import com.limingfeiyu.platform.management.mapper.HospitalPackageMapper;
import com.limingfeiyu.platform.management.service.IHospitalPackageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * <p>
 * 医院_套餐 服务实现类
 * </p>
 *
 * @author 黎铭飞羽
 * @since 2024-04-12
 */
@Service
@DS("psb")
public class HospitalPackageServiceImpl extends ServiceImpl<HospitalPackageMapper, HospitalPackage> implements IHospitalPackageService {

    @Override
    public Page<HospitalPackage> pageList(PageTable<HospitalPackage> pageTable) {
        QueryWrapper<HospitalPackage> userQw = new QueryWrapper<>();
        if (pageTable.getParam() != null) {
            userQw.lambda();
        }
        Page<HospitalPackage> page = super.page(pageTable.getPage(), userQw);
        return page;
    }
}
